import org.junit.jupiter.api.*;

//@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@TestMethodOrder(MethodOrderer.Random.class)
public class junitTest01 {

    @Order(4)
    @Test
    void Test01() {
        System.out.println("这是Test01测试用例");
    }



    @Order(3)
    @Test
    void Test02() {
        System.out.println("这是Test02测试用例被忽略");

    }

    @Order(1)
    @Test
    void A() {
        System.out.println("这是a测试用例");
    }

    @Order(2)
    @Test
    void B() {
        System.out.println("这是b测试用例");
    }

    /*@BeforeAll
    static void Setup() {
        System.out.println("这是Setup方法");
    }
    @AfterAll
    static void TearDown() {
        System.out.println("这是TearDown方法");
    }
    @BeforeEach
    void BeforeEachTest() {
        System.out.println("这是BeforeEachTest方法");
    }
    @AfterEach
    void AfterEachTest() {
        System.out.println("这是AfterEachTest方法");
    }*/
}
